package com.example.video.admin_server.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysDict对象", description="字典表")
@Table(name = "sys_dict")//设置表名
public class SysDict implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    @IsAutoIncrement
    @IsKey
    @Column
    private Integer id;

    @ApiModelProperty(value = "类型")
    @Column(comment = "类型", isNull = false)
    private String type;

    @ApiModelProperty(value = "类型名称")
    @Column(name = "type_name", comment = "类型名称", isNull = false)
    private String typeName;

    @ApiModelProperty(value = "标签")
    @Column(comment = "标签", isNull = false)
    private String label;

    @ApiModelProperty(value = "字典键值")
    @Column(comment = "字典键值", isNull = false)
    private String value;

    @ApiModelProperty(value = "排序")
    @Column(comment = "排序", isNull = false)
    private Integer sort;

    @ApiModelProperty(value = "0: 启用   1: 禁用")
    @Column(comment = "0: 启用   1: 禁用", type = "char",length = 1, isNull = false)
    private String status;


}
